//
//  RadioDataModel.m
//  NewMusic
//
//  Created by chuxinyu123 on 15/11/18.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "RadioDataModel.h"

@implementation RadioDataModel

- (void)dealloc
{
    [_listen_count release];
    [_pic_url_240_200 release];
    [_quantity release];
    [_tag_id release];
    [_tag_name release];
    [super dealloc];
}

- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

+ (RadioDataModel *)radioDataModelWithDictionary:(NSDictionary *)dictionary
{
    RadioDataModel *radioDataModel = [[RadioDataModel alloc] initWithDictionary:dictionary];
    return radioDataModel;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqual:@"quantity"]) {
        self.quantity = [NSString stringWithFormat:@"%@", value];
    }else if ([key isEqual:@"tag_id"]) {
        self.tag_id = [NSString stringWithFormat:@"%@", value];
    }else if ([key isEqual:@"listen_count"]) {
        self.listen_count = [NSString stringWithFormat:@"%@", value];
    }else{
        [super setValue:value forKey:key];
    }
}
@end

